import MyInfo from '../entity/db1/myInfo';
import BaseDao from './baseDao';

export default class UserDao extends BaseDao {
    public constructor() {
        super(MyInfo);
    }
    public async findByUsername(username: string): Promise<MyInfo> {
        return await MyInfo.findOne({
            where: {
                uName: username
            }
        })
    }
}